﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace Ascent.QiPei.Module.Win.Sales
{
    public partial class AddConfirmForm : DevExpress.XtraEditors.XtraForm
    {
        public float price;
        public int quantity;
        public AddConfirmForm()
        {
            InitializeComponent();
        }

        public AddConfirmForm(int quantity, float price)
        {
            InitializeComponent();
            this.txtNum.Text = quantity.ToString();
            this.txtPrice.Text = price.ToString();
            this.btnpanelOK.Focus();
        }

        private void btnpanelOK_Click(object sender, EventArgs e)
        {
            price = float.Parse(this.txtPrice.Text);
            quantity = int.Parse(this.txtNum.Text);
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.Close();
        }
    }
}